﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WebAuto
{
    public partial class AvailableCommands : Form
    {
        public AvailableCommands()
        {
            InitializeComponent();
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void AvailableCommands_Load(object sender, EventArgs e)
        {
            _highlightComments();
        }

        private void _highlightComments()
        {
            //Dictionary<int, int> listOfCommentIndexes = new Dictionary<int, int>();
            //int iCount = 0;
            //foreach(var lines in richTextBox1.Lines)
            //{
            //    if(lines.StartsWith("--"))
            //    {
                   
            //        listOfCommentIndexes.Add(iCount,lines.Length);
            //    }

            //    iCount++;
            //}
            //int i = 0;
            //foreach(var item in listOfCommentIndexes)
            //{
            //    richTextBox1.Select(0, item.Value);
            //    richTextBox1.SelectionColor = Color.ForestGreen;
            //    i++;
            //}

        }
    }
}
